// ! Vue.use() 的一些原理

import PageTools from '@/components/PageTools'
import MyCom from '@/components/MyCom'
import UploadExcel from '@/components/UploadExcel'
import UploadImg from './UploadImg'
import Calender from '@/views/dashboard/calender.vue'
import Lang from './Lang/index.vue'
import ScreenFull from './ScreenFull/index.vue'

export default {
  //  install()  传入的参数就是 Vue，因此直接命名为 Vue

  install(Vue) {
    // console.log(Vue)
    // 在里面可以直接当成 Vue 使用
    Vue.component('PageTools', PageTools)
    Vue.component('MyCom', MyCom)
    Vue.component('UploadExcel', UploadExcel)
    Vue.component('UploadImg', UploadImg)
    Vue.component('Calender', Calender)
    Vue.component('Lang', Lang)
    Vue.component('ScreenFull', ScreenFull)
  }
}
